package JavaMultiThreadProgramming.Ch1;

/**
 * Created by wyao on 17-3-3.
 * 使用继承Thread类来实现多线程
 * 运行结果与调用顺序无关
 */
public class T002_extends {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
        System.out.println("End");
    }
}


class MyThread extends Thread {
    public void run() {
        System.out.println("MyThread");
    }
}